package com.sc1905.crane.pojo;

import java.io.Serializable;

public class NMessage implements Serializable {
    private Integer messid;

    private Integer bookid;

    private Integer chapterid;

    private String content;

    private static final long serialVersionUID = 1L;

    public Integer getMessid() {
        return messid;
    }

    public void setMessid(Integer messid) {
        this.messid = messid;
    }

    public Integer getBookid() {
        return bookid;
    }

    public void setBookid(Integer bookid) {
        this.bookid = bookid;
    }

    public Integer getChapterid() {
        return chapterid;
    }

    public void setChapterid(Integer chapterid) {
        this.chapterid = chapterid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", messid=").append(messid);
        sb.append(", bookid=").append(bookid);
        sb.append(", chapterid=").append(chapterid);
        sb.append(", content=").append(content);
        sb.append("]");
        return sb.toString();
    }
}